package com.yanqu.road.entity.log;

import com.yanqu.road.entity.FieldTypeAnnotation;

@FieldTypeAnnotation(tableName = "t_l_ck_patrons_cook", desc = "门客厨艺值", autoSave = true, uploadCk = true)
public class LogPatronsCook extends ServerBaseLog {

    @FieldTypeAnnotation(desc = "用户id", isIndex = true)
    private long userId;
    @FieldTypeAnnotation(desc = "门客id")
    private int patronsId;
    @FieldTypeAnnotation(desc = "1获得0失去")
    private boolean isGet;
    @FieldTypeAnnotation(desc = "初始值")
    private long preNum;
    @FieldTypeAnnotation(desc = "变更值")
    private long num;
    @FieldTypeAnnotation(desc = "当前值")
    private long nowNum;

    public LogPatronsCook(long userId, int patronsId, boolean isGet, long preNum, long num, long nowNum) {
        this.userId = userId;
        this.patronsId = patronsId;
        this.isGet = isGet;
        this.preNum = preNum;
        this.num = num;
        this.nowNum = nowNum;
    }

    public long getUserId() {
        return userId;
    }

}
